package com.append.design;

public class SingletonFinal {
	private SingletonFinal() {
	}

	private static class HolderClass {
		private final static SingletonFinal instance = new SingletonFinal();
	}

	public static SingletonFinal getInstance() {
		return HolderClass.instance;
	}

	public static void main(String args[]) {
		Singleton s1, s2;
		s1 = Singleton.getInstance();
		s2 = Singleton.getInstance();
		System.out.println(s1 == s2);
	}

}
